/*********************************************************
          File Name:16.20.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 13 Dec 2015 05:01:06 PM CST
**********************************************************/

#include <iostream>
#include <vector>

template<typename Iter>
void print(Iter beg, Iter end)
{
        for(auto x = beg; x != end; ++x)
                std::cout << *x << std::endl;
}

int main(void)
{
        std::vector<int> v{1, 2, 3};
        print(v.begin(), v.end());
        return 0;
}
